package top.csy8888.work2.common.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeIn;
import io.swagger.v3.oas.annotations.enums.SecuritySchemeType;
import io.swagger.v3.oas.annotations.info.Info;
import io.swagger.v3.oas.annotations.info.License;
import io.swagger.v3.oas.annotations.security.SecurityRequirement;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import org.springframework.context.annotation.Configuration;

/**
 * @author CSY
 * @date 2025 - 09 - 17
 */
@Configuration
@OpenAPIDefinition(
        info = @Info(
                title = "移动端接口文档",
                version = "1.0",
                description = "百货商城移动端接口",
                license = @License(
                        name = "MIT",
                        url = "http://mit.org"
                )
        ),
        security = @SecurityRequirement(name = "JWT")
)
@SecurityScheme(
        name = "JWT",
        type = SecuritySchemeType.HTTP,
        scheme = "Bearer",
        in = SecuritySchemeIn.HEADER
)
public class OpenApiConfig {
}
